﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TI_EntityLib.TiEntityObjects
{
   public class MongoEntity
    {
       public virtual string  GetCollectionName(){return string.Empty ;}

       public virtual string GetAsJson(){return string.Empty; }

       public virtual string GetInsertScript()
       {
           string v=GetAsJson();
           string result = "db." + GetCollectionName() + ".insert(" + v + ");";
           return result ;
       }
    }
}
